What is the primary purpose of performing a functionality test on surgical instruments before reassembly?