Updates matrix import unit test and uses new nif_utils module.