failing test case for for-of loops