Add new unit tests.

* We now test the rfid code using pseudo terminals.