add some server testing code
try to do some coverage of the server side tests