Fixed failing Jasmine tests.