added test for _django_render fn + some changes