test for-in and for-of statements