testpts function