Fixing the unit tests for ps module