improve test cases of server_privileges.lib.php

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>