mock class to test run()