Fixed World.clearAllEntities().

Added partial WorldTest Unit Test class. This helped to identify and trace
the error.