Components are shared_ptr now so their deletion works properly; Added test level; Fixed rendering in event loop