add tests for empty permission fields