add a part of server commands and testcase