Test unitaire toggleMinimized