version with testing for active dataset.