cleanup shiro realm for negotiate. initial unit tests.