wrote a test for add and made it to pass