test cases for bug 350414

Here are the test cases for https://bugs.eclipse.org/bugs/show_bug.cgi?id=350414