How to find possible number of test cases?