Adding junit test cases.