middleware for setting the coordinates in the request object.
Improved the test helper to accept a transform function to compare the res.body vs the expected.