refactored test for SampleDataProvider