added junit test cases