Add sharness tests for recursive add

License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>