Add test cases for case-insensitive regexp matching on external variables