Auto remove empty test cases in coding questions

Empty test cases should not be saved after submit.