Refactor tests, remove django_nose dependency