test legend