Updated test code for Jasmine 2.