Updated code fomat in test Jasmine.