server: add functional tests

Make test coverage >= 90%

#1019 
It doesn't tick the node successfully, so it is an error