Fixing jasmine test