Use correct API functions for prefixes; improve debugging output
Support allowManualPrefixes in tester