test(lp): more test functionality into lp.cpp

Signed-off-by: Lev Nachmanson <levnach@microsoft.com>