changes in testDataset function - restructured, vectorOutout back to previous format