Fix jasmine tests