use jasmine.clock() in unit tests