fixed tests so that sqlalchemy does not raise warning