Bean and tomato stew with sausages