add test case for kerberos login and fix bugs of kerbersoLoginModule