Add loop tests.