Fix test
Added integration test for the model, to test the SQL query generated