finalize testing structure