Use lock for in-memory store
Start testing in-memory index
Ensure that counting one element works
Counting two elements
Perform simple queries
Query with skip
Query with skip and coun
Test and fix minValue
Test maxValue