adds server and test code