implemented Eliza's test server code