second pubsub example with qunit tests