Update capa tests

Apply the same template modifiers as in edxmako.
Update test templates to add `| n` modifier, when necessary.