Fix tests. Add support for django CMS 3.1