Added test for the addRemoveLinks option.