unit tests for lf and sl