add dataprovider for sonar tests.
use dataprovider in test