fix tests for non-first-line version
handle case where version goes to stderr