testing with spies
restructuring