make  datasetController testable and added test