Test multiple SQLAlchemy versions and fix 0.9 test issues
Fix tests for SQLAlchemy 0.9