added test code for templating;
added test code for validator and showing of error msg

Signed-off-by: daniel@efficio.us.com <daniel@efficio.us.com>