[370] improved RM class loading and a few testcases in the rm-builder

Revision: 370
Author: rong.chen

Log Message: