use pattern to test ids