all 40 test cases pass