fix bugs in tests releated to uppercase letter in JID