small refactoring in access policy test