Added Jasmine tests for sending requests