test rectangle