Fix addLayersFromConfig test