fix hasAccess phpunit test