fix documentation
improve integration tests