make integration test work on test environment