simplified the final example jasmine test