update virtual function test