added two test cases and removed some console log