added some integration tests.