Added tests for batch fetching joined table inheritance classes