fixed jasmine test to reflect current implementation