Fixed register bit tests in RFM library