Added TestDispatchUsernameInvalidSession to test_dispatch.py module.