added some integration tests
finished with tests