testin panTo method