updating the placement of error detection based on testing