CLI: Test to ensure maxErrors works with stdin input

Fixes #676