Move setInterval/clearInterval logic out of the runTest function
Move setInterval/clearInterval logic out of the runTest function

Smaller functions doing their own thing is nice

pereckerdal/overman,jkp/overman