Add unittests for BPL and LBPL