Add hasDefaultValues method to QgsDataDefined, add some tests