test_treeinfo: cleanups

* use mock_image_file() instead of mock_checkfile
* drop the abortive (and unused) mock_hexdigest