fix some test behavior in the pattern suite