test to check pattern