demo: ensure tests are still passing

A loop dependency was introduced for the demo mode. We break it by
loading models only later.