server: add more test case
protocol: remove unused type case, limit pack command arguments type