add a test env, and fix a bug
add a test server