test input pattern