Fix failing jasmine specs