Some basic test support
Fixing tests for different Django versions

Formset management fields output generation changed depending on Django
version.
Making sure variable is present

This avoids InvalidVarException checking, which enforces safe way of
using template variables.