Fix failing jasmine tests