Basic functionality to fix GH issue #2: correctly listing pattern
matches with extension matches.
Adding more tests
More tests