Add test case that reproduces repeated LF creation