Cocoamidopropyl betaine quality control