Add docstrings to tests

Hmm. Thinking about it a bit more, maybe `ValueError` is appropriate - the function is designed to work only with dotted paths. I think it should have a custom error message though.