Refactor to extract and test Test.Runner