fixes and test for auth backend