make server test more robust