Add some more unit tests
covers require support, jsdoc, function types