better test  in examples of legend