Added integration tests.