CLI: Test to ensure maxErrors works with stdin input

Closes gh-851
Fixes #676