Added tests for Function1 and PartialFunction behavior of collections.