Updated test spies to use prototype