test case for datamem