added jasmine tests for subscribe spec