#700 - truncate test state file before trying to count entries