add inline and virtual test code