 If a primary amine is present, the isocyanide (carbylamine) is formed, as indicated by a foul odour.The carbylamine test does not give a positive reaction with secondary and tertiary amines.The mechanism involves the addition of amine to dichlorocarbene, a reactive intermediate generated by the dehydrohalogenation of chloroform.