Fixes #933
moved the import inside the constructor
Merge remote-tracking branch 'private/fix/dipy_tests'

* private/fix/dipy_tests:
  moved the import inside the constructor
  Fixes #933