fix output during test
introduce run_timeout and simple unittests for run
Merge pull request #44 from stdweird/run_timeout

Run timeout