add single element appendTo test and fix