test rectangle covered