Ok checked how we detect if devices are registered. Change your `register_device` function to:
```python
z = Zone.objects.create(name='test_zone')
DeviceZone.objects.create(zone=z, device=Device.get_own_device())
Settings.set("registered", True)
```

Also, make sure you put `from securesync.models import Device` on the import statements.