sqlalchemy test bug fixed