add basic tests for MemoryDataLayer