refactored tests for server to use a test helper
 * testhelper is using the given, when, then format
 * given is expecting a request body
 * when is expecting a function to be tested
 * then is expecting a assertion function, containing all assertions
   * then will have the res, req and data provided