Add test/example for matching optional structures