[test] require.resolve call
[fix] require.resolve error throw