Added spying and stubs to the server.