Added: regression test for UnauthorizedAccessException bug.