fixed importError in tests under django1.6