updated expected legend method from 'get_hsl_color()' to 'get_color_str()'.
Now support both rgb() and hsl() color string formats.