Lun 368 tests

unit tests for the changes from https://github.com/pbs/django-cms-dbtemplates/pull/5