made test_gen automatically generate plots