test: fixes test cases for require.resolve