Refactor integration tests for authorization