this should be split up into two separate test client side and server side are in one class