a test to generate a plot named fig.png