Added functions to test the pattern object with the match and gsub functions. Addes also a few other tests that helped me tracking down some issues.
b6f767d