Use dataprovider for testcases.