[BUG #8187] switch to smarter bin path
[BUG #8187] move stdout test into own script
[BUG #8187] add tests