Updated TestManager so running all tests does not hang - caused by input/error streams not being exhausted causing blocking behaviour