Changed add_xxx to append_xxx, updated tests accordingly.