Adding Functional\pick()

Pick a single element from a collection of objects or arrays by index.
If no such index exists, return the default value.
Can we add a unit test for the exception factory method as well?