fix minor bugs on csf test script