Insert defining and testing