fixes user model import in tests for django < 1.5
add django setup call for django >= 1.7