Add test case for elements with length of 1 to catch loop errors