ping-pong in a form of Jasmine spec