test case for legend rotation