Fixed jasmine tests