test for EMD