add a test for append.
add more tests.