Added spy tests