updated testing code
added test server code