Fix tests using jasmine 2