test construction of dataframes