fixed a bug in the test server script