Add tests for template parameters.

None of this works yet.