Fixed failing legend tests in SpecRunner

Tested in Chrome, Firefox, IE11, Opera, Safari