Tests BUG 408
Merge pull request #33 from arielscarpinelli/master

Tests for ... Join fetching related objects that use inheritance causes wrong SQL