Remove obsolete template parameters in all functions.
Add tests for print functions.