_get_units works with attribute 'unit'