Jasmine spy to verify forEach callbacks.