Adds require.resolve with tests.
travisplexer: pr-553-osx travis ci test