Add test for Flask-SQLAlchemy
Fix InstrumentedAttribute usage in Unique validator