add a test case for TokenAuthLoginModule and fix some bugs of TokenAuthLoginModule and TestJaasLogin