Changed the API of the publication client to take the publication and a service as a parameter. Fixed the test cases.