added few junit test cases