Revise spec for Jasmine test