1. fix get UID return value
2. add function 'getGroups'
fix test script