Fix jasmine test to resolve travis failures