test case corrected & sysout ammded