Modify tests to work with SQLAlchemy
Add tests for creating tasks