Around the Thom-Sebastiani theorem