copied testcases from 1.1 and added matching with regex and type