added memcpy test and cleaned