Add tests for legend info in capabilities document
Merge 96f8438 made by volaya