pep8 in tutorial
Add tutorial example in the tests.
Fix opt bug not release that make in the end a stability opt not applied.

reported by David Huggins Daines
Merge pull request #1699 from nouiz/test_example

Fix stabilization opt not being applied(in dev version only)