Add missing imports to new_test_figures.py