Emulating Jasmine's spyOn function with UOPZ.