tests for add()