Tweaked debug_info. Added tests.rst file (those could also end up in the docs as examples)