it('should match matching strings even if the pattern ends with a wildcard', function() {
          // Given: a string that is longer than the pattern, but matches up to the wildcard, and the pattern
          var pattern = 'test*',
                  string = 'test';