Add some more test for the state machine code.

Specifically the RFID logic.