and try catch when get input and output test data