add server test logic

add server test logic in Main.java ServerManager.java