Fixed failing legend tests in SpecRunner

Tested in Chrome, Firefox, IE11, Opera, Safari
Merge pull request #142 from niksoper/legend-tests

Fixed failing legend tests in SpecRunner