add test case for LR algorithm test