Modify test procedures to reuse code.