added tests and server start, stop, restart commands