Add test for custom typeFromRoot
Merge pull request #1251 from bradleypriest/rootFromType

Add test for custom typeFromRoot