Fixing jasmine unit tests