Fixed failing Jasmine test