Fixes #398: EOL in tests strings must match those in template files

Fixes #398.