In doctest we don't have a test database, so they fail. The test database is built in a per-test basis.