Fix skipping of tests with dependencies

fix https://github.com/mne-tools/mne-python/issues/1017.

there was a bug in requires_statsmodels caused by code copying-and-pasting: we should probably streamline all of the dependency-related decorators into a single decorator with two arguments (module name, version).