Add tests for ImportWmsDirective

I try to test the loading and parsing of the GetCapabilities. 
The list of layers is correctly updated in the scope but not the HTML elements in the table (see test 'reorders list of layers')

Any ideas why?