Hydrogenation is a test that can be used to distinguish between butter and cooking oil.
Butter contains saturated fats and cannot be hydrogenated. On the other hand, oil has unsaturated fats. Thus, cooking oil can be hydrogenated to saturated fats (solids).