We need to implement integration tests (at least with a test db) as the current mocks don't cover all cases.