fix the call logic and add ecsmockcaller