Test rectangle improved