Fixing jasmine tests

@maxfliri