Add timeout to retrieval of wms capabilities for legend url
Fixed WmsLayerTest by resetting style parameter of wms after each test