Re-implemented the ECS. Moved the test into a simple example.