t7810: add missing variables to tests in loop