Fixing jasmine tests