Add GeneralTest.java for jUnit test