added EC unit test