Modify the test for test.cpp (when the number of test cases are large, it does not work because of lack of the capacity of pipe's buffer