simplified test_parser

script is called simply with a folder or file path. If a file is used,
then the script uses the folder that file is in.