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