Fix failing Jasmine tests. TODO: mock collaborators in this test.