replaced pixel testing function and added arcsec testing function