generate 2^10 test cases