unit test append/prepend