added tests for add method visitor