Test to see the function of pattern in input.