Added tests for sqlalchemy integration.
Split tests for consistency.