added tests make code use models without leads