added tests and server runner