simplify command-line testing so it can be run on the filesystem as well