Test for _nl_getAllLayers.