Case insensitive and pattern matching

This replaces pull request #1751. This is for issue #1724.
Plenty of repetition in this and subsequent tests. Could consider implementing separate keyword such as `Get Match Count Should Succeed` or `Test "Get Match Count"` and use it as `[Template]`.