fixed item.name for default item
fixed tests cause function moved to directive