Auth module with tests