1. Some utility functions to ease testing.
2. Tests for fromStream(), and flatMap().
Make the toArray() static a method of LinkedList instead.
Add a unit test for the toArray() method.