improves testing: fixing `skip_unless` decorator and Flask-SQLAlchemy session usage in tests
Merge pull request #337 from aluuu/improving-tests

Allows `skip_unless` to decorate classes