Remove duplication on utils test assertion