fixing has_access test