Refactors auth tests into a module