Jasmine specs for jQuery deferred objects