title: Test Smart Contract with arguments in constructor with truffle
body: <p>I want to test smart contract with parameter in constructor but have error.
  Here is my smart contract and test files:</p>
  <pre><code>pragma solidity &gt;=0.4.25 &lt;0.7.0;
  
  contract Test {
      string public test;
      constructor(string memory _test) public {
          test = _test;
      }
  }
  </code></pre>
  <p>const Test = artifacts.require(&quot;Test&quot;);</p>
  <pre><code>contract('Test', (accounts) =&gt; {
    it('should init', async () =&gt; {
    
      const instance = await Test.new(&quot;test&quot;);
      const result = await instance.test;
      assert.equal(&quot;test&quot;, result, &quot;info is not equals&quot;);
    });
  });
  </code></pre>
  <p>And log:</p>
  <pre><code>Error: while migrating Test: Invalid number of parameters for &quot;undefined&quot;. Got 0 expected 1!
      at /usr/local/lib/node_modules/truffle/build/webpack:/packages/deployer/src/deployment.js:365:1
      at processTicksAndRejections (internal/process/task_queues.js:97:5)
      at Migration._deploy (/usr/local/lib/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:68:1)
      at Migration._load (/usr/local/lib/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:55:1)
      at Migration.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/migrate/Migration.js:171:1)
      at Object.runMigrations (/usr/local/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:150:1)
      at Object.runFrom (/usr/local/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:110:1)
      at Object.runAll (/usr/local/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:114:1)
      at Object.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/migrate/index.js:79:1)
      at Object.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/testing/Test.js:109:1)
      at Object.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/test/index.js:192:1)
      at Command.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/command.js:136:1)
  Truffle v5.1.64 (core: 5.1.64)
  Node v12.16.3
  </code></pre>
  <p>How to solve it?</p>