Fixed DE bug. #81 Added more comprehensive unit test cases for DE.