add single table inheritance test and make change
Merge pull request #210 from axlekb/master

fix single table inheritance support