[PATCH v2 11/14] test: Move common FIT code into a separate fit_util file