fix legend transform tests