test8 script - fixed small bug