added test to rewrite forIn statement