Added parametrized test case with std::foreach