refactoring (quickTest.py)