Toronto tests response to terrorist attack hitting subway, offices