Throwaway virtual function testing