added some JUnit TestCases