added some integration tests