fix bugs in tests releated to uppercase latter in JID