Add test for generated "mega script". Rename "input" to "input_str".