added --path parameter, and use path to test against path other than / issue #3