adapt tests to the sqlalchemy 0.9