Refactored the test for the TestRunner class