Improving flapping feature test in permissions