use pattern for test