simplifying memcpy test