test append function