[FIX] security and constrian in test_range