WriteDataSources tests