Add integration tests with reducers & output dir

Also change existing tests to start an actual tool with cmdline
argument parsing.