add another unit test for ec