[mod] add mock api for test