Removed C++ sampler object member in unit tests.