Two Small Changes in Eddist

1. delete useless pieces of code;
2. improve test cases;