Basic auth code with tests