Authentication with TDD (Test driven development)