fix bugs when passing test3 in lock_tester