Add kmeans function UT

Improve mocking sandbox, and text readability
Fix arrayContain... functions