In 18 U.S.C. § 6001-6005, prosecutors may obtain court orders granting immunity, extending to state prosecutions as well, and in the Witness Relocation and Protection Act, the Attorney General is authorized to provide housing, payment of living expenses and other benefits in return for "an agreement to testify."