Unittests for randomSample being passed an InputRange.

The assignment of _input = input has been moved from
initialize() to the constructors so as to avoid
problems with nested structs.