Improved detecting test results and reporting them

Removed fork since it can cause havoc with tests that manipulate file streams