finish basic server and tests