tests: Improve hadoop test.