Port assertion methods from li3_unit to core.