Fix publisher unit test