add spying tests