test figure function