fix server unit tests