Make sure min <= max in test_clip
Merge pull request #1242 from lamblin/fix_test_clip

Make sure min <= max in test_clip