Add some proper integration tests.