Added some integration tests.