refactaring server.restart, server.reset
add server.reset test