add rect unit test