Tests for _nl_getLayers.