Tests

Added tests for models. 
Test also what happens with the response.