Enhances the testQueryVarsDirectAccessSet method for checking on a matching pattern along with the simple failing test