Use correct condition to check TANG_TEST
Fix tang.hook mess