Bug fix for the Jasmine BDD unit test.