ThrowForInvalidPrivilege: add unit test

This commit adds unit test for the |throwForInvalidPrivilege| function.

Tested: unit test passed

Signed-off-by: Nan Zhou <nanzhoumails@gmail.com>
Change-Id: I0722ce2483adeffd493528c9c952aea9af181de6
2 files changed