Added testcase to verify @ARGV not decoded

Added testcase to verify @ARGV not decoded when not run from main.