Tests and documentation for templated_read