Add more unit tests on api/client/ps package Upstream-commit: 7ce270d4ea17d5ec01fe00581fbabf4c5274f0e1 Component: engine