a test for foreach data source is come from a custom class