Pass tests with flask-sqlalchemy