MAINT: clean up test noise and optimize tests for docstrings and Trac issue numbers