test error detection