code cleanup
extract common stuff for test framework
Ambiguous call of overridden pre R14 auto-imported BIF