Added test for handleLinkedFormElements()