added tests for new auth login mechanism