Made a start on integration tests.