LINQ tests in C++11. Based on code by Stanisław Adaszewski