test ECM5 function  and example