Added some simple integration tests.