script to check all test cases