Add test case for issue #10393 and fix warning message

Firstly, I was trying to add a test case for #10393, then I found out that commit 8cfdb72 was introducing a warning `instance variable @inheritance_column not initialized`.

So I fixed that too :)

Tell me anything and i will update the PR asap :smile: thx