FIX: test_sgini is more robust