Sqlalchemy fix

I need to add a test when deleting an entity.