Completed JUnit test cases.