Rectangle test