fixed test scripts result counting