make tests a bit DRYer
fill in the rest of the server tests and code behind it