Test generation and concurrent error detection in current-mode a/d converters