Fixing jasmine test failure