finished unit test for LPM