better integration tests writing