Fix tests for SQLAlchemy 0.9.3