Method set_latent is deprecated in favor of method set_defaults in
e9c3a23e845d8c53b266a3b2e4ca7fb0a5a0425a. We need remove the usage of
method set_latent. We just use these config options in tests, it works
well for unit tests without them, so it's safe to remove them.
Change-Id: I582c787395d6eef559d7914bea815440cc09c0e2
Closes-Bug: #1707151