Extend dnode test suite to allow arbitrary JS

I need this capability to test the Object.defineProperty getters described in
schmittjoh/twig.js#85
Add test for Object.defineProperty getter described in schmittjoh/twig.js#85

This seems to be working, so that only leaves the other type of getter to test.