do_test_latents appears to be working now