Refactor shared auth test framework to avoid namespace clash