factor out code to run to allow multiple tests
merge
datatable code