Completed unit testing and refactoring of TiledElement.