testing post requests on server middleware