add test for bad pattern