A medical device (1) having a plurality of wiring boards (11,12,13) disposed in a housing (3), each of which has a board terminal (21,22,23) for testing the wiring board, comprising: one or more external terminals (41,42,43) provided on the outer surface of the housing (3) and connected to one or more of the board terminals (21,22,23) and one or more block means (31,32,33) provided between the respective board terminals (21,22,23) and the respective external terminals (41,42,43) and blocking writing of data to the wiring boards.