fix errors in RMA test