Add ctor test for Server
some changes