Refactor authentication specs