writing unit tests for LFG.