InMemoryKeyTest and null check in AbstractDao