Fix RMBUtils bug and add unit test.