STY: pep8 for cov tests
ENH: Manage degrees of freedom in cov like in std

Add a warning and set value to 0