Add test to pattern