option: amdNamed as a function, and convert line endings on tests