Fix failing tests.

Forgot to add a doctest suite for models.py in
b6fabd60475a8d2f743c658d3d18a6c924440bc3.