add junit test case for user