Sorted out issues with docstring tests in restraints.py.