Add preliminary integration tests

Yes, I think so. Any ideas?