encoding tests
pubsub tests