Add docstrings to tests

I would have expected `ImportError`. Is there a particular reason `ValueError` is more appropriate?