Fix RBM test case.