added integration test with in memory database