test memory in structure