Fix tests for sqlalchemy.

Also add them to travis.