fixing tests and now passing env through to output in verbose mode