switching integration tests to new API.