Fixed failing jasmine test