Add test cases for optional/truncated elements.