changed test_rect to run tracpy with tracpy object