tester.php: refactoring to class Tester