Added some JUnit test cases.