added tests for Pubsub model