testing cache for all constraint operations