Added tests for common base class and join table inheritance