Add a test of file generating when using import

R=sigmund@google.com

Review URL: https://chromiumcodereview.appspot.com//120983006