some tests
fixed traversal for large pattern.