Refactored/cleaned tester.py