added template matching test