[BUG #8184] move stdout test into own script
[BUG #8184] add tests
[BUG #8184] add more tests