Fix spy tests.