Added test cases in Test.java