Initializing all loops at the beginning of the test