Basic functionality tests with loops