Remove unused spy in a test