test server class and unittest testcase