Adding test code for full loop.