Added tests for attaching / detaching folder. bugid:112490