Add simple tests for virtual and abstract methods.