add test for append