Added regresion test for infering class name for a polymorphic association