Unit test for Type coercion

And fixed DelegatingType to not get in the way...