Fix for Travis problems with 'testFindLayerAsJson'

I believe this fixes the travis weirdness we're getting at the moment