A test for append
Handle negative indexes