Sorted out some issues with docstring tests in repex.py.