added a test with a spy