test for priviledge