Fix EZP-20530 incomplete unit & integration tests part 3

This PR resolves part of issue https://jira.ez.no/browse/EZP-20530

Incomplete tests in InMemory storage are implemented.