Polling jasmine tests