add tests to show that findById on model discriminators work
Merge pull request #2422 from alabid/gh-2392

add tests to show that findById for discriminators work