refactor server_privileges
fix UT according the source file changes
Merge pull request #652 from xmujay/refactor_server_privilegess

Refactor server privileges