refactor test_rect to exec-worker