small fix to minireg_test