Fixes CLI tests for hammer template command.

Fixed the existing tests but had to flag them to be skipped due to
Redmine issue 4560.
Merge pull request #461 from omaciel/fix-template-cli-tests

Fixes CLI tests for hammer template command.