Test add function.