Prepping auth source and tests
refactoring auth module to pass tests