Added some tests pointed out by coverage.py.