When two vectors are the same size, there is no need to extract the components and construct a new vector.
Test all core sampler functions.