tests/unit: report an error if lookup fails

If the unit is not supported by the voice, report an error.