Bug fix and whole chicken tests

Fix a nasty bug in _nextAction(), improve tests, and add a test for the
whole chicken process.