add junit dependency
add test cases