Adding tests for for_each_n