Merge "Avoid dereferencing NULL pointer with memcmp in the test code."