fixing integration tests for application, active auth and key auth