Self-testing properties of Gisin's elegant Bell inequality