updated test_rect.py to work with what we have so far in Tracpy class