added generate test cases, not uncommented yet