improve test cases of server_privileges.lib.php

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
Merge pull request #1301 from D-storm/tests

improve test cases of server_privileges.lib.php