modified testcases.java