Added new unit test for DE. Fixed bug. #82