tests not passing - error in pubsub