Add test for Setting.line_generation