add a test case and fix for an entity between superclass and actual entity that was failing