renaming client class and mock it to make the publisher tests pass