Test the legend

Adds tests that the legend positions and sizes correctly, and extracts
the correct info from the series'.