JUnit Test Case Check compilable UT input and removed odd expected-line ...

...from UT

Author tested Check on noncompilable cases which will never occur, so removed odd parts from UT