test - adding real tests for mem.c