JIDs without resources will return '' instead of the bare JID. Cleaned up JID tests, and added check_JID to SleekTest.