Fix cache issue

add test to allow query for null login_hint since api methods allow that.
Add version to pkeyauth
Issue #234