Added test case for add()