質問なんだけど
 lua_getfield( L, -1, "test" );

 lua_pushstring( L, "test" );
 lua_gettable( L, -2 );
って何が違うの?