Add test for global match. Related to #7.