integration tests for authentication