wrote a testcase for empty and adding first item and made it pass