Removed testing code
Added unit test to check for clearing the model
Bugfix: The wrong response header was sent