Add tests for some illegal pattern