Fixed stdin tests

Effectively stubbed out stdin by spawning a child process.