Fix integration test to work with ssl