fixed test script for end of game fencepost error.