History backend Unit test with in memory database