Modified tests to enable jasmine spies