Better test cases for user API

In brief, the current test cases don't test anything except that the server is running and does respond to requests. Moreover, the API is inconsistent and incomplete.

I created a couple of test cases on the user API to illustrate a more consistent and complete approach using the user API as an example.
This is a JSON API, so we expect the Content-type header to be 'application/json'. We can use a regex-match to account for spelling differences.

This test fails, the content type header returned by the server is 'text/html' at the moment.