DEVIDM-118: Some final tests and fixes of the hasAccess method.