Fix a simple mistake with pattern space, and add a test for it
2 files changed