Add test for global match. Related to #6.