fixing invalid argument check in match methods
Merge pull request #5 from leftieFriele/assertMatchBug

fixing invalid argument check in match methods