Added tests for the new permission level count

Tests added