in reply to testing: CGI::Application->tmpl_path()
Use Test::MockObject::Extends to wrap the CGI::Application object for that request and override its load_tmpl() method to return false.