Set up client and server-side testing

reference #145 #146 #147