Error insercion in test