Testing the applicability of density functional theory to zinc dihalides