Remove test cases that produce undefined results.