Use file resource instead of template
Increase test coverage