update pattern match test