add test case for client connection, fixed run script