simplify pubsub tests, implement and test subscribe