Fixed bug in AccessRightsTest.