Finished map layer class and added tests for it