Fixes tests to test pattern matching.