errorPattern test