Unit test for tracker.py