Document optional filename and default it to '<input>'.

Adds test for new default filename value.