[MapEditor] Adding unit tests.
[MapEditor] Documentation.