This adds a test to the recent GetLayerName function, and moves it to the base.h file for re-use for any code that needs a layer name. This test covers the case that caused lp:1824750 [1]. [1]: https://bugs.launchpad.net/kicad/+bug/1824750