Fixed Jasmine tests