test: Add more tests related to types exposed from a component.

Closes #885

Closes #958