added test cases to RectModel