Fix an exception that is occurs when running the controller generator

and test component exists

Thor is using ARGV internally.
And this problem is caused by the frozen elements of ARGV.