Removed test docstring. Add more standard exception message.