Finished writing simple test case for server

some debugging. lots left to do