Design and test of a superconducting RFQ for heavy ions