[embedding] Improve the code of embeddingAPI tests.

Impacted tests(approved): new 0, update 0, delete 0
Unit test platform: [Android]
Unit test result summary: pass 72, fail 17, block 4