test cases for XEP-0297 and XEP-0280