test(rect): add rect tests