single table inheritance with test