trq-2318 added a unit test for the rm.c file.