test error messages for missing template