Use @dataProvider instead of foreach in tests