How to use Arduino board to automate testing
You can get your 16 outputs by interfacing two 74HC595 shift registers (eight outputs each) to the Arduino using SPI. The SPI function isn't supported by the Arduino, so you will have to write the code yourself.

[Edit]

Here is some SPI code.