Added class for Legend and LegendProperties, test coverage for both.