add tests for append