updated tester to deal with a directory of test files, fixed indentation