Add methods appendTo and prependTo
Update test of insertion
Add private methods wrap and wraps