Fixing incorrect jasmine test