Simplify CDF initialization in tests.