Test.pm: Add result_dir and export both result_dir and result_file