another test codes and skeleton for RBM/CRBM (incomplete)