extract common setup of server side tests
extract common setup of client side tests