Work around BBB-incmpatible changes in 2.7 stdlib warnings.
Restore 'tests_require'.

Get automated tests working again.