Fixed command testcases to work with Django 1.5

Since Django 1.5 CommandError is raised further instead of changing it
to SystemExist as was the case before.