Add test case for pattern matching

Have not created the MatchResult structure yet, so this does not compile :P