added require.undef() api in node and browser tests