added support for command line options rather than hardcoded test files