unit tests for lcrp.c