Add a test case for append