Adds a few unit tests to cover the parent type derivation.