ENH: stable test + catch warning + pep8