Added tests for the new permission level count