configure checkstyle
add JUnit test file