First commit, initial tests to drive development of state machine.