added junit testcase