Add test for virtual functions
Check result of linker when running test