loadData now properly processes test and validate csv files