More tidying based on HLint suggestions
Add test for registration endpoint

Endpoint now also returns the correct status code (201).