implemented append mode for xcbc, testcase