Implement and test MemoryDataSource