added JUnit test