Plugboard tests and implementation