Added LINQ tests in java where applicable.