permit-matcher test almost pass