for( var key of test )とかfor( var key in test )じゃダメなん?