Add test for fan-in within a pattern.