Refactor hidden testing for imported procedure