Fixed but with nested @imports and extra test added.

BUG=

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