Add lead api tests