Add test for appendIfLarger
Implement appendIfLarger
Implement appendIfLarger