test for pat