Fix minor problems in LRFPS
Add test for LRFPS