Ported the new removeMultipleReallocationTest from the C code to the C++ code per #22.