Refactored tests and factory to work with Python 3

Had to refactor tests to work on both Python 3 and Django 1.6 besides
Python 2 and Django 1.7