Added functionality for getting test input files and result files from a directory