Add tests for ignoring null and undefined values in rules