Added tests for model inheritance