server: add functional tests

Make test coverage >= 90%

#1019 
local action is not descriptive. 
this is the command that do not need to go through raft before get applied.