Use two readers instead of instance variable.
Added pubsub test.