added database cleaner and corresponding integration test