added test for Set
cleaned uncessary setOutDocument