Moved pattern matching test case from t1.js