implementing integration tests