template with extension .r are supported on case-sensitive file systems

- add tests to cover existing and failing behavior