base add function and first test