add null check of TEST_PROGRAM
fix BUG/WARNING checker
add lib/setup_thp_base.sh