Fix input test of template matching