fixed test.js to support passing props directly instead of within the opts object