fixed integration tests
updated tests