JUnit test cases

ugly