fixed a bug where an automated test didn't clear local state properly before asserting things