Fix unit test on server