Refactor and add tests coverage on package runconfig Upstream-commit: be5e1498c360d80dfb42fdc1523afb2e7640996b Component: engine