Adds the InheritsFrom() assertion + tests.